var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
var isAndroidApp = (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) && u.indexOf('Html5plus') > -1; //android终端App
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
var isiOSApp = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) && u.indexOf('Safari') < 1; //ios终端App
export {isAndroid, isiOS,isAndroidApp,isiOSApp}
